﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Qianli.DirSir.Model;
using Qianli.DirSir.DAL;

namespace Qianli.DirSir.BLL
{
    public class StorehouseInfoBLL
    {
        StockhouseInfoDAL dal = new StockhouseInfoDAL();
        /// <summary>
        /// 显示仓库信息
        /// </summary>
        /// <returns></returns>
        public List<StorehouseInfo> Storehouseshow()
        {
            return dal.Storehouseshow();
        }
        /// <summary>
        /// 添加仓库
        /// </summary>
        /// <param name="Shinfo"></param>
        /// <returns></returns>
        public int StorehouseAdd(StorehouseInfo Shinfo)
        {
            return dal.StorehouseAdd(Shinfo);
        }
        /// <summary>
        /// 根据id获取仓库信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public StorehouseInfo StorehouseGetID(int id)
        {
            return dal.StorehouseGetID(id);
        }
        /// <summary>
        /// 修改仓库信息
        /// </summary>
        /// <param name="Shinfo"></param>
        /// <returns></returns>
        public int StorehouseUpdate(StorehouseInfo Shinfo)
        {
            return dal.StorehouseUpdate(Shinfo);
        }
        /// <summary>
        /// 根据id删除仓库
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int StorehouseDelete(int id)
        {
            return dal.StorehouseDelete(id);
        }
        /// <summary>
        /// 按条件搜索显示
        /// </summary>
        /// <param name="SthName"></param>
        /// <returns></returns>
        public List<StorehouseInfo> StorehouseInfoSelect(string SthName, string Sthcoding)
        {
            return dal.StorehouseInfoSelect(SthName, Sthcoding);
        }
    }
}
